//关注操作
import { getLikeDom } from '@/apis/doctor';
export const useFollow=()=>{
	const onFollow=async(item,type="doc")=>{
		uni.showLoading({
			title:'正在加载中...'
		})
		await getLikeDom(item.id,type)
		uni.hideLoading()
		item.likeFlag=item.likeFlag===1?0:1
	}
	return {onFollow}
}